<template>
  <div class='detail'>
    <p>负责人：{{info.name}}</p>
    <p>负责人电话：<span class="color-green active" @click.stop="sendNews(info,'tel')">{{info.tel}}</span></p>
    <p>负责人邮箱：<span class="color-green active" @click.stop="sendNews(info,'email')">{{info.email}}</span></p>
    <p>内容：{{info.content}}</p>
  </div>
</template>
<script>
export default {
  props:["info"],
  components: {},
  name: "",
  data() {
    return {};
  },
  methods: {
    sendNews(info,type){
      switch(type){
        case "tel":_g.telTo(info.tel);break;
        case "email":_g.emailTo(info.email);break;
      }
    }
  },
  created() {}
};
</script>
<style lang="scss" scoped>
.detail {
  padding: 0;
  color: #666;
  font-size: 13px;
  p{
    width: 100%;
    line-height: 45px;
    overflow-wrap: break-word;
    
  }
  .active:active{
    background-color: transparent;
  }
}
</style>